#! /usr/bin/python
import subprocess


def getFileName(file):
    """ Return the file name without the extension
    """
    dotIndex = file.rfind('.')
    if (dotIndex != -1):
        return file[:dotIndex]
    return file

def cmd(command):
    print ' '.join(command)
    subprocess.Popen(command)
